import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入vant
import Vant from 'vant'
import 'vant/lib/index.css'

// 适配的js
import "amfe-flexible"

// 重置样式
import "./assets/reset.min.css"

// 处理最大宽度
import {handleMaxWidth} from "@/assets/utils"
handleMaxWidth()
window.addEventListener("size",handleMaxWidth)


import { Lazyload } from 'vant';
let app = createApp(App)
app.use(store)
app.use(router)
app.use(Vant)
app.use(Lazyload, {
    lazyComponent: true,
  })
app.mount('#app')
